package com.situ.mall.api;

import com.situ.mall.common.util.Result;
import com.situ.mall.pojo.entity.product.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "product-service")
public interface ProductClient {
    @RequestMapping("/product/getById/{id}")
    Result<Product> getById(@PathVariable Long id);
}
